#parse("/regist/top.htm")
<script language="javascript">
function checkForm(){
	if(editForm.username.value==""){
		alert("用户名不能为空！");
		editForm.username.focus();
		return;
	}
	if(editForm.password.value==""){
		alert("密码不能为空！");
		editForm.password.focus();
		return;
	}
	if(editForm.randomCode.value==""){
		alert("验证码不能为空！");
		editForm.randomCode.focus();
		return;
	}
	editForm.submit();
}
</script>
<div class="clearfix"></div>
<div id="content">
<!--blogleft-->
  <div class="left border1">
<form action="/blogLogin.do" method="post" name="editForm">
	<input type="hidden" name="parameter" value="login">	
<div class="function_bar">
      <h2>博客功能区</h2>
    <div class="login_box">
    <ul>
      <li>用户名
        <input name="username" type="text" value=""/>
      </li>
        <li>密　码
<input name="password" type="password" value=""/>
        </li>
       <li>
验证码
	<input type="text" value="" name="randomCode" style="width:70px;"/>
<img style="margin-left: 2px;" src="/randomCode.do"/>
        </li>
     </ul>
	 <input type="image" src="/images/dl_r1_c1.jpg"   style="CURSOR: hand"  />
	 <img src="/images/dl_r1_c3.jpg" class="marleft" style="CURSOR: hand"  width="55" height="25" onclick="javascript:window.open('/blogLogin.do?parameter=register')"/>
     <!--img src="/images/dl_r1_c5.jpg" class="marleft" style="CURSOR: hand" width="71" height="25" onclick="javascript:window.open('http://www.knifecms.com/bbs/')"/-->
      </div>
    </div>
</form>

 <div class="news">
     <h2>热点博文</h2>
      <ul class="left_menu">
	 #foreach( $info in $hotReadList)
		<li><a href="/$!userService.getUserBlog($info.inputuser).getDomain()$!info.url" target="_blank">$!CommUtil.substring($!info.title,13)</a></li>
	 #end 
      </ul>
    </div>

    <div class="friend">
     <h2>研学之声</h2>
      <ul class="friend_menu" style="margin-top:3px;margin-bottom:0px;">
      #set($i = 0)
		#foreach( $info in $NewBlogList)
		<li>
		<a href="/$!userService.getUserBlog($!info.username).getDomain()/index.htm" target="_blank" style="color:#107DC5;margin-top:10px;text-align:center;">$!info.username</a>
		#set($aDoc = $NewBlogDocs.get($i))
		<a href="/$!userService.getUserBlog($info.username).getDomain()$!aDoc.url" target="_blank">$!CommUtil.substring($!aDoc.title,8)</a>
		</li>
		#set($i=$i+1)
		#end
      </ul>
    </div>

    <div class="friend">
     <h2>编辑空间</h2>
      <ul class="friend_menu" style="margin-top:3px;margin-bottom:0px;">
		#foreach( $info in $HotBlogList)
		<li><a href="/$!userService.getUserBlog($!info.username).getDomain()/index.htm" target="_blank" style="color:#107DC5;margin-top:10px;text-align:center;">$!info.username</a></li>
		#end
      </ul>
    </div>

    <div class="friend">
     <h2>友情链接</h2>
      <ul class="friend_menu" style="margin-top:3px;margin-bottom:0px;">
      #foreach( $info in $frindLinkList)
		<li><a href="$!info.url" target="_blank">$!info.title</a> </li>
	  #end
      </ul>
    </div>

  </div>
  <!--blogleft end-->
  <div id="center" style="border:none">
    <div class="least_bw">
     <h2>最新博文</h2>
#foreach($info in $list)
	<div class="box" style="border:0">
		<h3><a href="/$!userService.getUserBlog($!info.inputuser).getDomain()$!info.url" target="_blank">$!info.title</a></h3>
		<p style="padding-left:10px;white-space:normal">$!CommUtil.substring($!Config.NoHtml($!info.intro),110)</p>
		<p class="style_1" style="padding-left:10px;">
		<a style="margin-right: 20px; color: rgb(1, 113, 175);" href="/$!userService.getUserBlog($!info.inputuser).getDomain()/index.htm">
		[来自$!userService.getUserBlog($info.inputuser).getNickname()的博客]</a> 
		[发布时间：$!CommUtil.formatDate('yyyy-MM-dd HH:mm:ss',$!info.displaytime)]</p>
	</div>
	<div class="clearfix"></div>
#end
    </div>
  </div>
  
  <div id="right">
   <div class="right_bar">
     <h2>名博关注</h2>
    </div>
	<div>
	#foreach( $info in $FamousBlogList)
	   <div class="img1" style="width:75px;height:120px;margin-left:7px;float:left;text-align:center;display:inline;overflow-y:hidden;">
		<a href="/$!userService.getUserBlog($!info.username).getDomain()/index.htm" target="_blank">
			#if($info.tagimg)
			<img src="$!info.tagimg" width="75" height="85"/>
			#else
			<img src="/images/default.gif" width="75" height="85"/>
			#end
		</a>
		<div style="margin-top:10px;text-align:center;width:75px;" align="center">
		<a href="/$!userService.getUserBlog($!info.username).getDomain()/index.htm" target="_blank" style="color:#107DC5;margin-top:10px;text-align:center;">
			 $!info.nickname
			 </a>
		</div>
		</div>
	#end 
	</div>
	<div style="height: 4px; margin-top: 10px;" class="right_bar">
     <h2></h2>
    </div>
<!--
   <div class="hot"> 
    <h2>热点博文</h2>
     <ul class="right_menu">
 #foreach( $info in $hotReadList)
		<li><a href="/$!userService.getUserBlog($info.inputuser).getDomain()$!info.url" target="_blank">$!CommUtil.substring($!info.title,13)</a></li>
	 #end 
      </ul>
   </div>
-->

  </div>
</div>
<div class="clearfix"></div>
#parse("/regist/bottom.html")
</body>
</html>
